package org.outlook.xnotepad;

import java.io.File;
import java.io.IOException;
import java.text.MessageFormat;
import java.util.List;

import org.apache.commons.io.FileUtils;

public class Somethine {
	
	private static String splite="#####";
	private static String querysql="select * from LY_XXBZ_M where XXJJDBH={1} and XXXMC='{2}' and ZWJC='{3}'";
	private final static MessageFormat MESSAGEFORMAT = new MessageFormat(querysql);
	
	@SuppressWarnings("unchecked")
	public static void main(String[] args) throws IOException {
		String content = FileUtils.readFileToString(new File("d:/aa.txt"));
		List<String> list = FileUtils.readLines(new File("d:/aa.txt"));
		String[] strings=null;
		String sql=null;
		for(String line:list) {
			strings = content.split(splite);
			sql = MESSAGEFORMAT.format(strings);
			
		}
	}

}